<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>商品详情</title>
    <link rel="shortcut icon" href="/images/favicon.ico" type="image/x-icon">
    <script src="/libs/swiper/swiper.min.js"></script>
    <link rel="stylesheet" href="/css/shopinfo.css">
</head>
<body>
    <header></header>
    <main>
        <nav>
            <div class="nav-warp">
                <h3 class='shopName'>坚果R2</h3>
                <ul class="shopParams">
                    <li><a href="javascript:;">概览</a></li>
                    <li><a href="javascript:;">设计</a></li>
                    <li><a href="javascript:;">功能</a></li>
                    <li><a href="javascript:;">相机</a></li>
                    <li><a href="javascript:;">操作系统</a></li>
                    <li><a href="javascript:;">技术规格</a></li>
                </ul>
            </div>
        </nav>
       <div class="content w" id='detail_warp'>
           
       </div>
       <script type='text/html' id='detail'>
        <div class="left">
            <div class="middImg">
                <img src="{{detail.photo[0].url}}" alt="">
                <span class="block"></span>
                <span class="mask"></span>
            </div> 
            <div class="bigImg">
                <img src="{{detail.photo[0].url}}"alt="">
            </div>
            <div class="smImg-warp">
                <ul>
                    {{each detail.photo item,index}}
                        {{if index===0}}
                        <li class='active'><img src="{{item.url}}"></li>
                        {{else}}
                        <li><img src="{{item.url}}"></li>
                        {{/if}}
                    {{/each}}
                </ul>
            </div>
         </div>
        <div class="right">
            <h3>{{detail.title}}</h3>
            <span>{{detail.qunTitle}}</span>
            <hr/>
            <div class="youhui clearfix">
                <span class='title'>{{detail.couponValue}}</span>
                <div class="youhuiInfo">
                    <p><span>新人礼</span>下载app领新人大礼包,首单优惠购最低只要￥9.9<a href="javascript:;">查看详情</a></p>
                    <p><span>{{detail.detailHintMsg}}</span>{{detail.expireMsg}}</p>
                </div>
            </div>
            <hr/>
            <div class="choose">
                <div class=" clearfix">
                    <h4 class='title'>服务选择</h4>
                    <div class="styles color">
                        {{each detail.accessoryHints item,index}}
                            {{if index===0}}
                                <span class='active'>{{item}}</span>
                                {{else}}
                                <span>{{item}}</span>
                            {{/if}}
                        {{/each}}
                    </div>
                </div>
                <div class="room clearfix">
                    <h4 class='title'>描述选择</h4>
                    <div class="styles room">
                        {{each .detail.keywords item}}
                        <span>{{item}}</span>
                        {{/each}}
                    </div>
                </div>
            </div>
            <hr>
            <div class="fuwushuoming clearfix">
                <span class='title fl'>服务说明</span>
                <div class="fl">
                    <p>* 满99包邮</p>
                    <p>* 支付成功后7天内发货，如遇不可抗力因素将会延迟</p>
                </div>
            </div>
            <hr>
            <div class="baoxiu clearfix">
                <span class='title fl'>保修服务</span>
                <div class="fl">
                    <div class="baoxiu1 clearfix">
                        <div class="left2 fl">
                            <h3>坚果R2意外碎屏保修服务</h3>
                            <span>'屏幕意外摔坏，可以免费更换？'</span>
                        </div>
                        <div class="right2 fr">
                            <p><span>249</span>元/1年</p>
                            <p>折算后仅需0.69元1天</p>
                        </div>
                    </div>
                    <div class="baoxiu1 clearfix">
                        <div class="left2 fl">
                            <h3>坚果R2意外碎屏保修服务</h3>
                            <span>'屏幕意外摔坏，可以免费更换？'</span>
                        </div>
                        <div class="right2 fr">
                            <p><span>249</span>元/1年</p>
                            <p>折算后仅需0.69元1天</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </script>

    </main>
    <footer></footer>
    <div class="cartbottom">
        <div class="addActive">添加购物车成功</div>
        <div class="content w" id='payBottom_warp'>
            
        </div>
        <script type='text/html' id='payBottom'>
            <div class="left">
                <span>你选择了</span>
                <div class="info">
                    <span class="name">{{detail.title}}</span>
                    <span class="price">x1</span>
                    <p>{{detail.qunTitle}}</p>
                </div>
            </div>
            <div class="right">
                <div class="price">￥{{detail.price}}</div>
                <button type="button" class="nowBuy"><a href="/html/cart.html">去购物车</a></button>
                <button type="button" class="addCart">加入购物车</button>
            </div>  
        </script>
    </div>
</body>
<script src="/libs/require/require.min.js" data-main="/js/shopinfo/shopinfo"></script>
</html>